package uk.co.wroedevelopments.semanticworkbench.actions;

import javax.swing.text.DefaultCaret;

import org.xtext.example.myDsl.DefC;
import org.xtext.example.myDsl.NewSub;
import org.xtext.example.myDsl.Ontology;
import org.xtext.example.myDsl.util.MyDslSwitch;

public class ModelSwitch<ModelVistor> extends MyDslSwitch<ModelVisitor> {
	
	private ModelVisitor visitor;

	public ModelSwitch() {
		super();
		visitor = new ModelVisitor();
		
	}
	
	public ModelVisitor caseOntology(Ontology object)
	  {
	    visitor.visit(object,this);
	    return visitor;
	  }
	
	public ModelVisitor caseNewSub(NewSub object)
	{
		visitor.visit(object,this);
	    return visitor;
	
	}
	
	public ModelVisitor caseDefC(DefC object)
	{
		visitor.visit(object,this);
	    return visitor;
	
	}
	
}
